package com.fang.unittest;

import java.util.*;

public class TestDriver02 {
    public static void main(String[] args) {
        test02();
    }
    private static void test02(){
        Map<String,String> map = new HashMap<>();
        map.put("姓名","张三");
        map.put("性别","男");
        Set st = map.keySet();
        for (Object ob:st) {
            System.out.print(ob+":"+map.get(ob)+" ");
        }
    }
    private static void test01(){
        List list = new ArrayList<>();
        list.add(0);
        list.add(5);
        list.add("java");
        for (Object ob:list) {
            System.out.print(ob+" ");
        }
    }
}
